package cn.sofwin.sb;


public class Main {
    public static void main(String[] args) {

    }
    /*public static  void initAutowired(Object obj){
        Field[] fields = obj.getClass().getDeclaredFields();
        try {
            for (Field field:fields){
             MyDao myDao = field.getAnnotation(MyDao.class);
                if(myDao !=null){
                    System.out.println(field.getName());
                    //第一阶段：实现设置属性值的操作
                    field.setAccessible(true);
                    field.set(obj,new UserDao<IdEntity>());
                    //第二阶段，动态设置对应数据类型的对象
                    System.out.println(field.getType());
                    field.set(obj,field.getType().newInstance());

            }


            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }*/
}
